<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body onload="setInterval(getDateTime,1000)">
		<div id="enclock">
			
		</div>
	</body>
	<script type="text/javascript">
		function getDateTime(){
			var date=new Date();
			
			var enclock=document.getElementById('enclock');
			enclock.innerText=date;
			enclock.innerHTML='<font color="red">'+date+'</font>'
		}
	</script>
</html>
